package com.example.senior4_001;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.alibaba.android.arouter.launcher.ARouter;
import com.example.lib_common.router.ArouterPath;

public class MainActivity extends AppCompatActivity {

    private TextView jump;
    
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        ARouter.getInstance().inject(this);

        initView();
    }

    private void initView() {
        jump = (TextView) findViewById(R.id.jump);
        
        jump.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                ARouter.getInstance().build(ArouterPath.Home_Path).navigation();
            }
        });
    }
}